-- GENERATED SPELL FOR [Savage Hill Scavenger] --


function spell0_29404(pUnit, Event) --@Bone Toss,n/a--
pUnit:FullCastSpellOnTarget(50403,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29404', 500, 1)
end

function Sorts_29404(pUnit, Event)
local choix_sorts_29404 = math.random(0, 0)
if choix_sorts_29404 == 0 then
pUnit:RegisterEvent('spell0_29404', 1, 1)
end
end

function mob29404_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29404', math.random(1500, 3000), 1)
end

function mob29404_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29404_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29404_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29404, 1, 'mob29404_Action')
RegisterUnitEvent(29404, 2, 'mob29404_Leave')
RegisterUnitEvent(29404, 3, 'mob29404_Kill')
RegisterUnitEvent(29404, 4, 'mob29404_Die')
